package com.express.e.root.service;

import com.express.e.root.bean.Delivery;

import java.util.List;

public interface DeliveryService {

    Delivery addDelivery(Delivery delivery);

    Boolean deleteDelivery(String deliveryNum);

    Boolean fetchDelivery(String deliveryNum);

    List<Delivery> queryByList(int pageIndex,int pageSize);

    Delivery updateDelivery(Delivery delivery);

    Integer total();

    Delivery randomCode(Delivery delivery);

    List<Delivery> queryAll();

    Delivery queryById(Integer deliveryId);

    Delivery queryByCode(Integer deliveryCode);

    Delivery queryByNum(String deliveryNum);

    Delivery queryByName(String deliveryName);

    Delivery queryByPhone(String phone);

    List queryListByName(String name);

    List queryListByCourier(String courierName);
}
